home *** CD-ROM | disk | FTP | other *** search
- On 24-Jun-97, Rune J. Keller wrote:
-
-
- >A couple of my friends from school run a PC-network where
- >they're usually playing a game like Quake. Now, one of them has a
- >P-75 and run the game with about 15fps. Another has a P-200MMX
- >and can easily run 30fps. However the game itself runs with the
- >same speed on both computers...
-
- Actually, in a case like this where you have a VERY fast machine
- linked with a slow machine, the processing is sometimes divided
- up between the two (or more) machines based on their speed.
-
- So, the P200MMX machine may be processing 80% of all the
- games control-code and passing the processed data to the P75
- machine which is spending the majority of it's time retrieving
- that data and refreshing the display...
-
- Obviously, you need a local-link between the machines as using
- this over the Internet would be a just a bit slow... HA!HA!
-
-
- >To solve the problem you could check the speed of the machine
- >in the beginning of the game and according to this value change
- >the speed of the monsters.
-
- You could double the animation frames for every object
- targeting the fast machines from the start.
-
- If the machine is slow, set the anim-step to 2 and double the
- x/y velocities of every object.
-
- This would effectively make the game run the same speed. The
- difference being that the 50fps version would be twice as
- smooth due to the doubling of the number of anim-frames...
-
- Or, if you wanted the easy way you could just duplicate each of
- the current frames, so DRAGONHEADFACINGLEFT elements (0)&(1)
- both equal the same image. Again, simply adjust the ANIMSTEP
- at the start based on CPU power...
-
- >Has anybody else solved this problem in a better way?
-
- I don't know if I'd say it's better, but the EASY way is just to place
- a little timer check in your main-loop:
-
- Repeat
-
- Timer=0 : Rem Simply reset the Timer at start of loop...
-
- Bob Clear
- DO_ALL_THE_MAGIC
- Bob Draw
-
- Repeat : Until Timer : Rem Make sure at least 1 Vbl has passed...
-
- Screen Swap : Wait Vbl
-
- Until STAGEOVER
-
-
- That's fast and easy. The game can't run faster than 25/30fps
- and it doesn't slow-down the underpowered machines.
-
- This is the method I will be using in the Shooter-stage so the final
- version will run at 25/30 fps on all machines (except stock A500
- that is)...
-
- Speaking of the Shooter-stage, I sent the new demo to Mr. G, so
- it should be on the web-page by now.
-
-
- Any of you guys using 50MHz Amigas, PLEASE let me know how the
- demo performs on your machines.
-
- Should easily hit 50/60 fps, but I'd like to be sure...
-
-
-
- Take care,
-
- Garfield
-
-
-
-
-
-